import request from '@/utils/request'

// 上传文件
export function submit(fileList) {
  return request({
    url: '/excel/add',
    method: 'post',
    data: fileList
  })
}

// 筛选
export function filter(data) {
  return request({
    url: '/excel/filt',
    method: 'post',
    data: data
  })
}
//查询文件信息列表
export function getFileInfoList(queryParams) {
  return request({
    url: '/excel/list',
    method: 'get',
    data: queryParams
  })
}


// 删除文件信息
export function delInfo(fileId) {
  return request({
    url: '/excel/' + fileId,
    method: 'delete'
  })
}

// 下载zip
export function downLoadFile() {
  return request({
    url: '/excel/download',
    method: 'get',
    responseType: 'blob'
  })
}

